package com.mm.cloud.common.security.loginuser;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 登录token
 *
 * @author mr
 * @since 2021-07-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "登录token")
public class LoginToken implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "token")
    private String token;

    @Schema(description = "过期时间")
    private Long expire;

    public LoginToken(String token, Long expire) {
        this.token = token;
        this.expire = expire;
    }
}
